package main

import "fmt"

func breadthFirst(f func(item string) []string, worklist []string) {
	seen := make(map[string]bool)
	for len(worklist) > 0 {
		items := worklist
		worklist = nil

		for _, item := range items {
			if !seen[item] {
				seen[item] = true
				worklist = append(worklist, f(item)...)
			}

		}
	}
}

func crawl(url string) []string {
	fmt.Println(url)
	link, err := links.Extrace(url)
}
